import { Routes } from "@angular/router";
// HomeComponent this components will be eager loaded
import { HomeComponent } from "./home/home.component";

export const routes: Routes = [
  { path: "", component: HomeComponent, pathMatch: "full" },
  //延迟加载
  { path: "shop", loadChildren: "./shop/shop.module#ShopModule" },
  { path: "**", component: HomeComponent }
];
